// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.*;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * FundsPayOrder
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "funds_pay_order", autoResultMap = true)
@Schema(title = "请款单")
public class FundsPayOrder implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 请款单号
   */
  @TableField(value = "`order_id`")
  @Schema(title = "请款单号")
  private String orderId;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 关联单号
   */
  @TableField(value = "`associated_order`")
  @Schema(title = "关联单号")
  private String associatedOrder;

  /**
   * 付款方
   */
  @TableField(value = "`payer`")
  @Schema(title = "付款方")
  private String payer;

  /**
   * 状态
   */
  @TableField(value = "`status`")
  @Schema(title = "状态")
  private String status;

  /**
   * 应付费用类型
   */
  @TableField(value = "`cost_type`")
  @Schema(title = "应付费用类型")
  private String costType;

  /**
   * 应付对象类型
   */
  @TableField(value = "`payer_type`")
  @Schema(title = "应付对象类型")
  private String payerType;

  /**
   * 应付对象名称
   */
  @TableField(value = "`payer_type_name`")
  @Schema(title = "应付对象名称")
  private String payerTypeName;

  /**
   * 结算描述
   */
  @TableField(value = "`describe`")
  @Schema(title = "结算描述")
  private String describe;

  /**
   * 预付比例
   */
  @TableField(value = "`budget_ratio`")
  @Schema(title = "预付比例")
  private java.math.BigDecimal budgetRatio;

  /**
   * 结算方式
   */
  @TableField(value = "`settlement_type`")
  @Schema(title = "结算方式")
  private String settlementType;

  /**
   * 交易方式
   */
  @TableField(value = "`exchange_type`")
  @Schema(title = "交易方式")
  private String exchangeType;

  /**
   * 支付方式
   */
  @TableField(value = "`pay_type`")
  @Schema(title = "支付方式")
  private String payType;

  /**
   * 预计付款日期
   */
  @TableField(value = "`predict_fk_time`")
  @Schema(title = "预计付款日期")
  private java.util.Date predictFkTime;

  /**
   * 户名
   */
  @TableField(value = "`user_name`")
  @Schema(title = "户名")
  private String userName;

  /**
   * 开户行
   */
  @TableField(value = "`bank_of_deposit`")
  @Schema(title = "开户行")
  private String bankOfDeposit;

  /**
   * 账号
   */
  @TableField(value = "`bank_account`")
  @Schema(title = "账号")
  private String bankAccount;

  /**
   * 原币种
   */
  @TableField(value = "`currency`")
  @Schema(title = "原币种")
  private String currency;

  /**
   * 付款币种
   */
  @TableField(value = "`pay_currency`")
  @Schema(title = "付款币种")
  private String payCurrency;

  /**
   * 指定汇率
   */
  @TableField(value = "`exchange_rate_type`")
  @Schema(title = "指定汇率")
  private String exchangeRateType;

  /**
   * 汇率
   */
  @TableField(value = "`exchange_rate`")
  @Schema(title = "汇率")
  private java.math.BigDecimal exchangeRate;

  /**
   * 请款维度
   */
  @TableField(value = "`withdraw_dimension`")
  @Schema(title = "请款维度")
  private String withdrawDimension;

  /**
   * 备注
   */
  @TableField(value = "`remark`")
  @Schema(title = "备注")
  private String remark;

  /**
   * 附件
   */
  @TableField(
    value = "`attachment`",
    typeHandler = SysFileListTypeHandler.class
  )
  @Schema(title = "附件")
  private List<SysFile> attachment;

  /**
   * 付款金额
   */
  @TableField(value = "`payment_amount`")
  @Schema(title = "付款金额")
  private java.math.BigDecimal paymentAmount;

  /**
   * 已付
   */
  @TableField(value = "`paid_amount`")
  @Schema(title = "已付")
  private java.math.BigDecimal paidAmount;

  /**
   * 未付
   */
  @TableField(value = "`unpaid_amount`")
  @Schema(title = "未付")
  private java.math.BigDecimal unpaidAmount;

  /**
   * 申请人
   */
  @TableField(value = "`applicant`")
  @JoinField(SysUser.class)
  @Schema(title = "申请人")
  private Long applicant;

  /**
   * 申请备注
   */
  @TableField(value = "`apply_remark`")
  @Schema(title = "申请备注")
  private String applyRemark;

  /**
   * 申请时间
   */
  @TableField(value = "`apply_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "申请时间")
  private java.util.Date applyTime;

  /**
   * 实际付款日期
   */
  @TableField(value = "`payment_date`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "实际付款日期")
  private java.util.Date paymentDate;

  /**
   * 付款人
   */
  @TableField(value = "`payment_user`")
  @JoinField(SysUser.class)
  @Schema(title = "付款人")
  private Long paymentUser;

  /**
   * 付款备注
   */
  @TableField(value = "`payment_remark`")
  @Schema(title = "付款备注")
  private String paymentRemark;

  /**
   * 审批结果
   */
  @TableField(value = "`approve_status`")
  @Schema(title = "审批结果")
  private String approveStatus;

  /**
   * 审批意见
   */
  @TableField(value = "`approval_opinion`")
  @Schema(title = "审批意见")
  private String approvalOpinion;

  /**
   * 付款附件
   */
  @TableField(
    value = "`payment_attachment`",
    typeHandler = SysFileListTypeHandler.class
  )
  @Schema(title = "付款附件")
  private List<SysFile> paymentAttachment;

  /**
   * 折合新币种
   */
  @TableField(value = "`convert_into`")
  @Schema(title = "折合新币种")
  private java.math.BigDecimal convertInto;

  /**
   * 本次付款
   */
  @TableField(value = "`this_payment`")
  @Schema(title = "本次付款")
  private java.math.BigDecimal thisPayment;
}
